#include "enter.h"
#include "ui_enter.h"

enter::enter(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::enter)
{
    ui->setupUi(this);
    this->setGeometry(QRect(250,150,1200,800));
}

enter::~enter()
{
    delete ui;
}

void enter::on_to_background_clicked()
{
    this->close();
    ba=new background();
    ba->show();
}

void enter::paintEvent(QPaintEvent *event)
{
    QPainter painter(this);
    painter.drawPixmap(0,0,1200,800,QPixmap(":/new/prefix1/p1.jpg"));
}
